<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>
<div class="panel panel-default operation" hidden>
    <div class="panel-heading title"></div>
    <div class="layui-card-body">
        <form class="layui-form " action="" lay-filter="info" style="width: 700px;margin-top: 10px">
            <input name="id" lay-filter="id" hidden/>
            <div class="layui-form-item">
                <label class="layui-form-label"> 标题</label>
                <div class="layui-input-block">
                    <input name="title" lay-filter="title" placeholder="请输入标题" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-inline">
                    <select id="type" name="type" lay-filter="type">
                        <option value="">请选择新闻类型</option>
                        <option value="11">公布新闻</option>
                        <option value="12">内部新闻</option>
                        <option value="13">普法宣传</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">内容</label>
                <div class="layui-input-block">
                    <textarea id="content" name=content lay-filter="content" >内容</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">保存</button>
                    <button class="layui-btn layui-btn-primary" id="btn_cancel">返回</button>
                </div>
            </div>
        </form>
    </div>
</div>

<div class="table_div">
    <div id="searchParam" shiro:hasPermission="sysOrganMessage:list">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" class="layui-input" autocomplete="off" placeholder="请输入标题">
            </div>
            <!--<div class="layui-input-inline layui-form">-->
            <!--<select id="status">-->
            <!--<option value="">请选择账号状态</option>-->
            <!--<option value="1">正常</option>-->
            <!--<option value="2">禁用</option>-->
            <!--</select>-->
            <!--</div>-->
            <div class="layui-input-inline layui-form">
                <select id="newsType">
                    <option value="">请选择新闻类型</option>
                    <option value="11">公布新闻</option>
                    <option value="12">内部新闻</option>
                    <option value="13">普法宣传</option>
                </select>
            </div>
            <!--<div class="layui-input-inline">-->
            <!--<select id="organType" name="organType" lay-filter="organType">-->
            <!--<option value="">请选择新闻类型</option>-->
            <!--<option value="11">公布新闻</option>-->
            <!--<option value="12">内部新闻</option>-->
            <!--<option value="13">普法宣传</option>-->
            <!--</select>-->
            <!--</div>-->
            <div class="layui-input-inline ">
                <button class="layui-btn" onclick="search()" id="search">查询</button>
                <button class="layui-btn" id="export">导出全部</button>
            </div>
        </div>
    </div>
    <table class="layui-table" id="showTable" lay-filter="showTable"></table>
</div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add" shiro:hasPermission="sysOrganMessage:add">添加</button>
        <button class="layui-btn layui-btn-sm" lay-event="batchDeleted" shiro:hasPermission="sysOrganMessage:delete">
            删除
        </button>
    </div>
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-xs" lay-event="edit" shiro:hasPermission="sysOrganMessage:update">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"
       shiro:hasPermission="sysOrganMessage:delete">删除</a>
</script>

</body>
</html>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script src="/js/sysorganmessage/list.js"></script>